<template>
    <div class="test">
        <button @click="test">这是一个测试按钮</button>
    </div>
</template>

<script>
import {ReqCategoryList} from '@/api/index'
import mockAxios from '@/api/mockAxios'
    export default {
        name:'sphTest',
        methods:{
            // async test(){
            //     let result = await ReqCategoryList()
            //     // console.log(result);
            // }

            // async test(){
            //     let data = await mockAxios.get('/floor')
            //     console.log(data);
            // }

            async test(){
                let data = await mockAxios.get('/slide')
                console.log(data);
            }
        }
    }
</script>

<style lang="less" scoped>
.test {
    background-color:gold;
    height: 50px;
}
</style>